#!/bin/sh
module="scull"
device="scull"
mode="664"

echo "Remove $module driver."
rmmod $module $* || exit 1

# Remove stale nodes
echo "Remove stale nodes."
rm -f /dev/${device} /dev/${device}[0-3]
rm -f /dev/${device}pipe /dev/${device}pipe[0-3]

echo "Unload $module complete."

